﻿

namespace SKeeper.Application.Services.Account
{
    using Domain.Repositories;
    using Domain.Users;
    using Persistence.Repositories;
    using SKeeper.Persistence.Facade;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    public class AccountControllerService : IAccountControllerService
    {
        private DomainModelFacade db;
        private ICompanyRepository companyRepository;


        public AccountControllerService(DomainModelFacade context)
        {
            this.db = context;
            this.companyRepository = new CompanyRepository(this.db);
        }

        public void CreateCompanyForUser(User user, string name)
        {
            this.companyRepository.CreateCompanyForUser(user, name);
        }
    }
}
